<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="/css/style.css">
</head>

<body>
    <main class="max-w-[1200px] mx-auto">
    <nav class="bg-gray-200 p-4 flex justify-between mb-8">
        <ul class="flex gap-4">
            <li><a href="/products">产品列表</a></li>
            <li><a href="/orders">订单列表</a></li>
        </ul>
        <div>
        <% if(locals.user){ %>
            <%= locals.user.email %> &nbsp;&nbsp;&nbsp;&nbsp;<a href="/logout">Logout</a>
        <% } else {%>
            <a href="/login">Login</a>
        <% } %>
        </div>
    </nav>   
    
